﻿using System;

namespace Present.Commands
{
    public static class Guard
    {
        public static T IsNotNull<T>(T target, string name) 
        {
            if(Equals(target,null))
                throw new ArgumentNullException(name);

            return target;
        }
    }
}